package ccm.itesm.mx.servicios;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class ServiciosAlimentariosActivity extends TabActivity {

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.serviciosalimentarios);
        
        Resources res = getResources(); // Resource object to get Drawables
	    TabHost tabHost = getTabHost();  // The activity TabHost
	    TabHost.TabSpec spec;  // Resusable TabSpec for each tab
	    Intent intent;  // Reusable Intent for each tab
	    
	    intent = new Intent().setClass(this, MesonActivity.class);
	    spec = tabHost.newTabSpec("El Meson").setIndicator("El Meson",
	                      res.getDrawable(R.drawable.mesondra))
	                  .setContent(intent);
	    tabHost.addTab(spec);
	    
	    /*intent = new Intent().setClass(this, TarikoActivity.class);
	    spec = tabHost.newTabSpec("TaRiko").setIndicator("TaRiko",
	    		res.getDrawable(R.drawable.tariko))
	    		.setContent(intent);
	    tabHost.addTab(spec);
	    
	    intent = new Intent().setClass(this, BorregueteActivity.class);
	    spec = tabHost.newTabSpec("Borreguete").setIndicator("Borreguete",
	    		res.getDrawable(R.drawable.borreguete))
	    		.setContent(intent);
	    tabHost.addTab(spec);
	    
	    tabHost.setCurrentTab(0);*/
    }
}